import React from "react";
import ReactDOM from "react-dom/client";
import "./index.less";
import App from "./App";
import reportWebVitals from "./reportWebVitals";
import zhCN from "antd/es/locale/zh_CN";
// import "moment/locale/zh-cn";
// import 'dayjs/locale/zh-cn';
import { ConfigProvider } from "antd";
import EventEmpty from "./components/FOF/EventEmpty";
import { HTML5Backend } from "react-dnd-html5-backend";
import { DndProvider } from "react-dnd";
const root = ReactDOM.createRoot(
  document.getElementById("root") as HTMLElement
);

const customizeRenderEmpty = () => <EventEmpty title="暂无数据"></EventEmpty>;

root.render(
  // <React.StrictMode>
  <DndProvider backend={HTML5Backend}>
    <ConfigProvider locale={zhCN} renderEmpty={customizeRenderEmpty}>
      <App />
    </ConfigProvider>
  </DndProvider>

  // </React.StrictMode>
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
